Saving the file after advertising sec.