Added some comments in function record_interactive