Improved server and thread pool