Timer logic implemented