Added wipe last recording logic.