Added reading from console.