Multithreading added to terrain setup.