Added check of instruction pointer used for print statement to encourage diversity and decoupling of cases.