Update mode chain inference
Merge pull request #9 from vijakshay/vij

Update mode chain inference