Reformatted code and changed needle locagtion.