added timer functionality in header