Added serialization for objective and master