Update UsefulFuncs.scala