Fix depreciation issue and change attr_accessor to attr_reader