Code was scattered all over the place.