Add getters and setters for the custom attributes.