Filming took place between April and June 1997. Although the story is set in Boston, and many of the scenes were shot on location in the Greater Boston area, many of the interior shots were filmed at locations in Toronto, with the University of Toronto standing in for MIT and Harvard University. The classroom scenes were filmed at McLennan Physical Laboratories (of the University of Toronto) and Central Technical School. Harvard normally disallows filming on its property, but permitted limited filming by the project after intervention by Harvard alumnus John Lithgow. Likewise, only the exterior shots of Bunker Hill Community College were filmed in Boston; however, Sean's office was built in Toronto as an exact replica of one at the college.