Added temporary cursor code