Implemented the public compiler API funcs.