Adjustments to translation algorithm