Renamed goal to states in Connection.