Chain detection