Added inverse permutation support by Munro et al.