Added cursor confinements