Add wrapper functions and basic logging.