Added console log debug