Main timer process