First version of MAGGOT that may or may not work.