MoveTo function implemented