Added compile function to public interface.