Setup base lookup tables