Work in progress, current: write to file