Add functions to check queue status