 Originally written by Ronald Shusett and Dan O'Bannon, director Paul Verhoeven had problems with the third act and hired Goldman to help fix the screenplay.According to the director, the problem was that the last forty minutes of the film was one long action sequence and had abandoned the "mental theme.