Director Craig Lucas and screenwriter Elyse Friedman have signed on to the Matthew Perry, Justin Long and Hilary Swank comedy Laws of Motion, according to The Hollywood Reporter.

The movie centers on an uptight professor (Perry) struggling with a repressive career and community, as well as headaches caused by his free-spirited brother and sister. Swank will take on a supporting role as the perfectionist neighbor of Perry's character.