Add optional queue for delayed processing.

- Improve test coverage.