Added support for Autofac