Added prepare method
Added helper method to simplifying iterating over all fields and preparing them to be serialised