LAST and NEXT selection logic is working.