Now reads input from files