Fixed the issue with trying to write a list to a file. Now it doesn't do what it should, and I'm still trying to figure out why.