added initial stages for timer function Timer()