Added support for head requests