More work towards a useful script