Add calculatePopularities
Extract stops by mode.