Added newinject method