Fitting the three main pieces together