Thanks very much to Jo the fellow Celeriac for providing the script which I only changed a little bit!