Replace missing chain stride code, script tweaks.