Exported c++ intake code