Finish the code to support the "-hfield" option