Added reading from input