Extracted timer into global.