Variable chain assignment working