Fixed bug and changed range to xrange