Add FDT code and formatting