Added settings option for future multithreading