private static void printLayerDetails(Model model, String mode) {

		System.out.println("***************************************************************************");
		System.out.println("****************************** Layer Details ******************************");
		System.out.println("***************************************************************************");
		
		/**
		 * Print Layer details
		 */
		ArrayList<Layer> layers = new ArrayList<Layer>(model.getLayer());
		//Collections.sort(layers);
		
		for (Iterator<Layer> iterator = layers.iterator(); iterator.hasNext();) {
			Layer lay = iterator.next();
			float layperc =  Constants.round2digits(lay.getTimeAccel()/(model.getTimeaccel()/100));
			if(lay.isPrinted() && mode.contains("p")){
				System.out.println("--------------------------------------------------");
					System.out.println(lay.getLayerDetailReport()+"\n Percent of time:"+layperc+"%");					
				if(mode.contains("s")){
					System.out.println(lay.getLayerSpeedReport());
				}
			}else if(!lay.isPrinted() && mode.contains("n")){
				System.out.println("--------------------------------------------------");
				System.out.println(lay.getLayerDetailReport()+"\n Percent of time:"+layperc+"%");
				if(mode.contains("s")){
					System.out.println(lay.getLayerSpeedReport());
				}
			}
		}
	}