Turned the quote timer code into a function