Splitted the program into more threads..