Fixed "gh" function so that all options work (not just the 'u' option).