Switch to external queue implementation.

Closes #7