Made qlength external