Changes some references and other stuff.