Added file and basic writing.