First pass implementation of queue module