Added demo. Fixed recursion depth > 1.