Adding method to access atttribute, instead of accessing it directly.