Add the last part of the pool server. Still a WIP (some crash)