Added Cursor location query