First tested and working timer implementation.