Removed unused cursor