First draft for a thread safe pool.