Added support for headers sid passing.