Wrote some additional code for semi-analytic injection stuff.