Layer creation method added.