Allow optional header to be passed in.