Renamed status to state.