POC to avoid race condition.