Multi threading now working