timer functionality added.