Changed prototype for chr_map_input - added const.