Added qtsrt code