Removed encoding number of layers