Add some functions to manage rqueue