Accessor for format, some refactor.