Updated /qtree handler