Implemneted possibility to customize serialization