Add utility to check cursor