Further bug fixes. Still can't read file.