Added dependency lifecycle control to ioc