Use better variable names, break up the format_helper function for clarity, and keep all lines within 80 chars