if (!lockFile()) {
              println("Could not open due to problems with moving dataset file.")
              return false
            }