As requested, removing factories and adding the missing addHeaders() method.