My very own thread pool implementation.