Add procedures
Fix idata and itext