ReadStdin function has parameters updated