LBD3Q27 Replica Code