Expose compile function