offstageprocesshandler.initializecemeterytour(userpreferences, (tour) => { var highlights = cemeteryhighlights.favoritespots(tour, "peaceful corners"); if(highlights.failtonotice("historic graves")) { tour.givepreexplanation(); tour.resetfromzero(); } else { tour.enjoyoffstagedetails("quiet moments", "sunset views"); }});