 Musker and Clements created the Genie with Robin Williams in mind; even though Katzenberg suggested actors such as John Candy, Steve Martin, and Eddie Murphy, Williams was approached and eventually accepted the role.Williams came for voice recording sessions during breaks in the shooting of two other films he was starring in at the time, "Hook" and "Toys".Unusually for an animated film, much of Williams' dialogue was ad-libbed