Chain closing re-implemented