Correcting loopless version.