Overhaul of Hagerman functions