Fewer loops by advice of Nick Av.