Add Format class + make it possible to fail loudly