Updating debug print logic.