Fixed timing for multithreading. Added config file