Some public functions to private