Serializer with save to file