Add PERMAPI check