Starting (well, mostly implementing) the layer extraction model.