Working on runtime and correct finishing of the program.