Add Threading support for 3x speed boost