Update hbPublicFunctions.R