Implement queue sync/async config flag. Closes #54