Added code from rule based translator