Implemented dynamic queue