Try to implement smart-select-move