Improved volatile handling and providing last element for selection.
Fixed selection and dwell handling bug.