Added support for clearing recording
debug