Improved coding using custom formatter.