Add helper meber functions
This functions helps encapsulation, the user should not have to modify the structs directly.