Update inject method