Added in back generic function interface for queues