Update outputs based on state

We still need to update the state based on inputs