Added hflags to do command line argument processing.