Added pause and fixed replay