Finally finished timer system!

This should work fine, but needs to be tested extensively. Please check
it for errors as well.