Pacino went to producer Martin Bregman with the intention of getting a Carlito film made. First thing on the list was to get a script written that would portray Carlito Brigante's world and provide a suitable showcase for Pacino's talents. David Koepp had just finished writing the script for Bregman's forthcoming "The Shadow" when producer Michael S. Bregman suggested him to write the script for "Carlito's Way". The decision came that the screenplay would be based on the second novel "After Hours". Carlito at this stage would match closer with Pacino's age. Although based primarily on the second novel, the title "Carlito's Way" remained, mainly because of the existence of Martin Scorsese's movie "After Hours". Bregman would work closely with Koepp for two years to develop the shooting script for "Carlito's Way".