Move util functions.