Moved code From Injector to it's own object