Made the zero-threshold code parallel.