Add ability to new up instances when injecting.The current implementation is a work around until a better solution is found.