Cleaning up. Move thread pool configurtion to properties