Adding replay function 3