Set up all the interactions between layers.