Remade injectCode method. Now it has a default parameter.