Added inject method