Various changes for user serialization and pre/post callbacks.