Only define the helper functions if they do not already exist