Function dict_lookup_grep got extra parameter, init_pos, which marks