Add ability to serialize with proc