All sorts of random hacking to try and get Safari to work