Rearrange FDM method structure, and start TMM coding.