Collect state into one var