Added support for adding custom headers. — NM