Buffalo Bill’s dance was not included in the original draft of the screenplay, although it appears in the novel. It was added at the insistence of Ted Levine, who thought the scene was essential in defining the character.
https://en.wikipedia.org/wiki/Death%27s-head_hawkmoth