Generalise code
Optimize table data processing
Use the translated version