First version of lookup table based translation