Debugged the HV.cpp file