added self.queue; changed some puts statements