Added cursor debug.