Check for existence of functions in case they haven't been defined