Miscellaneous scripts and utilities