 Screenwriter Jonathan Nolan worked on the script for four years.To learn the scientific aspects, he studied relativity at the California Institute of Technology.Jonathan was pessimistic about the Space Shuttle program ending and how NASA lacked financing for a manned mission to Mars, drawing inspiration from science fiction films with apocalyptic themes, such as "WALL-E" (2008) and "Avatar" (2009).