Changed 3125 to the global MSEC variable