Add FTM QD function and demo apps