Added global variable calls in common.php