Updated to newest dependencies
Review followup. Made number of threads configurable