Can't really remember why - or when I wrote this. But many thanks to James Graham for his suggesions.
A perennial problem