COSMIT: Replaced xrange with range