Added plugin to function buildPyramid and created insertLayersGroup function.