Prepare code for hotspots