Debugging logic.