Move the packing to class MainWindow.
Record commits.