Add util functions.