Contains BAnalysis code