Put some protections in here, in case the file isn't readable or it's in the right format.