(refactor) Refactored for chain.link.