Added a customized method into ds_queue.c