Expose TaskQueue and improve documentation