Finally got write to work!