Oh, never mind. I would actually use Ruby's Queue class...