Store data in object before saving

Makes generated data accessible to alterFields() which is handy when one
fields depends on the value of another