Added conditional and debug message.