Add the actual code for the "replay" command.