Main tool file.