Change clone detection logic