More random code that probably doesn't work at all.