Added inject-function.