Updated move_to method, added more flexibility for it