Gary Whitta writing the screenplay