Rename pitc.php and moved functions to an external file.