Removed references to newState in warmup and cooldown functions