Timer works properly now