Implement timer functionality.