Scripts I found on mpgh. Quite nice! I take no credit for them.