Loop detection
Merge pull request #2 from e692227447/master

Loop detection