 Isaac Asimov (qv) was approached to write the novel from the  script. He perused the script, and declared the script to be full of  plot holes. Receiving permission to write the book the way he  wanted, delays in filming and the speed at which he wrote saw the  book appear before the film.