Add injecting function