Added the CTimer. Still need to make some small changes to it (logfile name) but it works well.