* Misc functions.