Generally useful scripts