Adding qs_set middleware