Adjusting timer code, uses second rather than millisecond notation.