Add timing to loading the state only.
Better code layout.