Add timer functionality