Adding chain support.