Variable changed to THREADS_ALLOC and added to denoise.py