Added functions php file