Rewrote destroy_fmi to be less stupid