Added additional checks to make sure project is a paper.Project