Add IO and serialization methods to core