Safety with machinery