Add multi threading for computing errors