Update helperFunctions.r