Amended so the chain is always a step behind to avoid unnecessary recusrion