Simplified threading by joining queue