Director Marc Webb
, whose previous big-screen foray was the romantic (500) Days of Summer
, explains, "When we tested them, there was fireworks. She could take on Andrew's improvisation and witticisms and one-up him. I mean, it was amazing to see them go back and forth. … It became an obvious combination, because that's what people are there for."