Made some changes to queue structure for pull