added basic timer functionality