Edited functions.php constructor