Minor updates & write to file