Slightly more manageable encoding.
almost done