Add ability to insert to head or tail of queue
Code review for pdr locks