Fixed typos.  Should have been referencing $ms instead of $GLOBALS