Added some logic for projects.