Add a method allowing to register custom formats