Custom Headers flag

Adding in useHeaders flag to allow custom headers to be passed in if
required