Added beginnings of layers and authentication