Made the RHS take the time series and constraints, so we don't pull them in from the global state.