Added ability to run clingo from within application.