Added ability to do stuff after and before serialization