Set cursor properly (performance boost)