Custom marshaller.