Updated jagscode as Keith suggested. Collision of dual use of chains?