Added retrieving initial state and colorloop