Fixed repeated random j for IA4. Added more checks for IA4 and IB3