Register name_filter method.