Modified method to read values from the instance variables.