I can't remember why the projectPath var was introduced, but it looks like it is no longer necessary since it's only used once.