Function add_record
Starting main script recorder