Added grep_by_instance_id