MFADT thesis code