V2.1 - script now fully automatic