Another idea which Thalberg consented to, was that before filming would commence on an upcoming picture, the Marx Brothers would try out the new material on the vaudeville stage, working on comic timing and learning which jokes and gags earned a laugh and which did not. Jokes were planted accordingly, so the laughs could be timed correctly. What was to become the famous "stateroom" scene was nearly eliminated because it was not getting any laughs. One evening the Marx Brothers threw away the script and ad-libbed the whole thing. As a result, a weak scene was transformed into one of their all-time classics.