New util functions