New public API to run and read program