Restored this code while we continue with iOS 6