Reorganizing ruler file.