I don't know what the purpose of these two functions are, I'm guessing they're something to do with a device I didn't test, but they're breaking it for ios