Fixed up the header injection, should now function as planned.