added in simple version of the timer.
added in directives to run timer