Changed the variable from nHidden to nLayers.