Trying out writing to a txt file. Doesn't work yet.