Changed deprecated function.
Moved project functions to project.php file.