Added the format() method.