Checkpoint relatively working code.