Update replay code