Will Gluck mentioned that the thought of the story started with the strategy that he needed to work with Kunis and Timberlake, describing that he rewrote the script for the two actors. Timberlake and Kunis workshopped the script for a lot more than a thirty day period prior to the motion picture went into generation.