Added some more APIs to analysis_class.