Add setter for serialize_methods struct
Rename file callback struct