Lookup tables

First pass at lookup tables