 The script was written by Thiagarajan Kumararaja himself, which he had finished in 2006.He cites that he wanted to make a "racy film" and wrote the climax part first, which would be the "raciest part of a film".He then wrote "multiple story lines with three climaxes" as he felt that one climax was "not enough for a feature film", which eventually turned out to be a "leisurely paced film, taking its own time to unfold" and not a racy film as intended.