He also served as producer of the film and wrote its screenplay based on David Foster Wallace 's collection of short stories .
John Krasinski produced and wrote a film based on David Foster Wallace´s stories .