Reverted lookup table due to bizarre bug, will fix later