First (partially broken) attempt at whole-chain processing.