Finally split up serializing and plugin logic code :)