Updated the get headers to use lodash methods.