Moved getter definition into its own function.