(mod_replay) Added parameter to select the action to be taken when end-of-data is reached.