Timer functionality added