Updated to work with IoC refactoring on mmbot