Use getter function instead of direct property access