Added the ability to cancel a running analysis