Moved server main class to the pool