Added outputPath option to define location where the requested serialisation format is saved to.