Chord logic updated