Updates to use a thread pool for write