Added logic to addProject().