Partly fixed bug with program input.