Analysis engine implemented (not yet tested)