Adding timer functionality.