Made change to access instance variable through getter.