Removed multithreading, fixed saving.