Implemented code for HEAD