The ending of the conversation between Louie and Joan was ad-libbed.
The part in which Louie yells at the audience was based on a real-life experience of Louis C.K.'s when he performed at a casino early in his career.
The entire casino kitchen was created by the show's production designer. C.K. planned to shoot in a real casino kitchen but it was not possible.