Moved timing code from Modem class to UI