Added a bit more verbose error message for invalid h/v