Using getter instead of global constant