Added key changing as something update can do. Also fixed random bugs which turned up.