Update helper_functions.lua