Util functions written