Add injectBefore and injectAfter