Added attr_reader for some variables