Pass loc_mapper as parameter