Simplify moveTo() logic