Use StackCheck to detect module recursion