Fix some problems with peek
Checkpoint replay scheduler