Timer working partially