I think this code is dangerous, I'm happy to get rid of it.