Finish mostly everything except build_aliases().