Sets a basic timer loop