Adding smarts for varying-length integers.
Formatting.
Re-working logic flow.
Re-working flow using a lookup table.