Bare-boned yet handy functions.