Add method for bitflip, fix error with updating checkpoints