Fixing translate script to handle tables.