Much mucking around

if you run this directly it may not even run. Be careful!