This is the original script from which I hacked all others