Working on getting a better implementation of cursor location