Added nf_get_objects_by_type function.