Implemented the remaining small part of the caret location finder. Fix ALL THE EXCEPTIONS!