Skipped replace if no vars were sent.

Also only one injection method should be used.