Cleaned up the timeloop