Roger discovers the secret of Jeannie's existence when he accidentally releases her from her bottle. He is amazed to learn that Tony, her master, has never used her ability to fulfill his every wish by asking for wealth or romance. Tricking Jeannie back into her bottle, Roger, now master, embarks on a spree of high living and refuses to give her back to Tony. Then Tony learns that Roger prizes his position as an astronaut above anything else. He gets a photo of Roger in the luxurious surroundings Jeannie has made for him. Using this as an opening wedge, Tony leads Dr. Bellows and General Hadley to feel that Roger must be engaged in nefarious activities to live in such great style. General Hadley has Roger arrested. Facing a trial for treason, Roger tells Tony he'll do anything to get out of his predicament. In return for Tony's help, Roger returns Jeannie to him. Jeannie blinks and immediately Dr. Bellows and General Hadley forget the whole incident. Roger philosophically accepts life as an easy come, easy go proposition when be learns that Jeannie, at the same time, has removed all the wonderful thugs she bas created for him.