Fixed stdin new line problem.