Adding clear queue fn