Added option to remove last recorded segment.