Introduce item at the top of groupByDistance function