Added code related to multi-threading noise generation.