Modified dinodex code, added one more method