Changed the queue to a StyledDocument.