Input line is working. Added support of EOR (with bugs)