Scan func is done.