Miscellaneous non-interactive functions