Added JSON support and queue interface.