Changed the way sim data is stored and fixed csv parser not being closed