Added 'auto' format function.