Multi threading for node