Working code, to translate selections