Interaction loop detection added.