Added function resetTimer to the example-code