Added mainController parameter to AnalyseTask Constructor