Update usefulfunctions.lua