I wanted to tidy this code for some reason
Try and futher prevent damage during sync. No idea how people keep managing to do it.