Added functions and some hotfixes added to Core.php Page