Revert "Revert "Corrected lookuptable""

This reverts commit 36c79abef2d6b8162c3d2fd69e4a49943948a001.