Changed some filenames and added a thread pool.