Had to pass the whole stream to the execute time travel function. So made some changes to main