Added code to restart recorder