This seems to work. We need to fix ignore_text function