Merged both Console and Web functionallity into a single index.php file