public static void gotoSlide(int requestedID){

		if(requestedID==currentSlideID) {
			if (Debug.engine) System.out.println("Engine -> " +
			"gotoSlide -> requested slide ID = currentSlideID.  Request Ignored");
			return;
		}
		// Nested ifs make sure to avoid null pointer exceptions by trying to
		// access uninstantiated data
		if (SafetyNet.slideShow != null) {
			if(SafetyNet.slideShow.getTree() != null) {
				// If the requested ID is valid, then render it.
				if ((0 < requestedID) && (SafetyNet.slideShow.getTree().size() >= requestedID + 1)){
					currentSlideID = requestedID;
					// Update the section navigation bar with the new current slide.
					Gui.getSectionNav().updateCurrent(currentSlideID);

					// Render the next slide.
					playSlideshow();

				}
				else
					if (Debug.engine) System.out.println("Engine -> " +
							"gotoSlide -> requested slide ID is not valid");
			}
			else
				if (Debug.engine) System.out.println("Engine -> " +
						"gotoSlide -> requested slide ID is not valid");
		}
		else
			if (Debug.engine) System.out.println("Engine -> " +
					"gotoSlide -> requested slide ID is not valid");
	}