Add queue to the fetch function