More algorithm modifications.