Moved lookup table initialization to correct function