Like most popular depictions of genies, Disney's Genie was originally a slave. Though he possessed "phenomenal cosmic powers", he was bound to an "itty-bitty living space" and could only use his powers when the owner of the lamp (his master) made a wish; he occasionally does things without granting a wish, but never anything that greatly affects the world around him. He is also bound by three laws; he can't kill anyone, he can't make people fall in love and he can't revive the dead. It is possible, however, that he can do the third one, but that, as he puts it; "It's not a pretty picture. I don't like doing it!". Each master has three such wishes, and cannot exceed this amount by wishing for more wishes. The lamp came into the possession of the character Aladdin during the course of the first film, and he remained in servitude until Aladdin used his third and final wish to grant Genie his freedom at the end of the film. Despite being granted his freedom, Genie decided to remain with Aladdin as his friend, since Aladdin showed him such kindness.