Simplified the read of the input.