Adding queue to data structures