Added and integrated RQS clear function