Nick's miscellaneous scripts