If you haven't seen Guardians of the Galaxy yet, you'll want to stop reading now since there are plenty of spoilers that follow.

Towards the end of Guardians of the Galaxy, the sentient tree Groot (voiced by Vin Diesel) sacrifices himself for his fellow Guardians, and many fans thought this would be the last we saw of Groot. But since Groot can literally regenerate himself, the very last scene shows Baby Groot sprouting up from a pot, dancing along to The Jackson 5 hit "I Want You Back," as Drax the Destroyer (Dave Bautista) cleans his massive knives in the background.

Take a look at this charming scene below, then read on to learn what writer-director James Gunn initially had in mind for this sequence.

Related: Watch Fat Thor Sing Johnny Cash's Hurt on Avengers: Endgame Set

Writer-director James Gunn revealed in an interview with Yahoo! Movies that this scene was always in the script, but he had originally had it as an end credits stinger, before deciding to place it at the very end of the movie.

"It was initially written as a tag for the very end of the film. But after we shot it, it worked so well I wanted to put it at the actual end of the film so none of the audience would miss it."

The director added that he specifically wrote The Jackson 5 song "I Want You Back" into the script for this scene, since it is his favorite pop song of all time. The filmmaker went on to reveal that he performed all of the Baby Groot dance moves himself.

"Baby Groot dancing is 100 percent me. I was too embarrassed for anyone to be there, so I made everyone leave the room and I set up a camera and I videotaped myself dancing. Then I sent the video to the animators and had them animate over that. I begged them not to leak the video! Two of my closest friends came to an early screening and said 'Hey, I recognize those moves! That's you dancing isn't it?!' But I knew he made me happy as hell when I first saw how he was animated. He's adorable."