Create some util functions.