Works like xrange