Removed code smell with simple format method.