Rewrite Inject method