Added context argument to inject.