Pedro's useful scripts