Add some public funcitons.