Changes to read values from console