Add file write working