Makes idea shuffling pg-compatible