Adds support for next and previous in the queue