Removed unecessary $GLOBALS