I guess THREADS is needed, just used a default value of 1. Feel free to correct me if there is anything bad with the version merged of this module.