Moved $drive to $GLOBALS['drive']