Move some things into Utils funcs.