Cleaned up timer function