Adding ways to check possible illegal instructions.