More util functions.