Added format extension method.