Generate multiple layers from one source layer correctly