Rearranged evaluation to: state - input - output - write