Adds the insert operation to state