Made data read from file only happen once