Changed formatValue() to format() to use new method name