Replaced loop type.