Get M-th from end element
Data file added - to use change CLI to CLI = False
Get M-th from end element