Tweaked version of maple-sdfat (https://code.google.com/p/maple-sdfat/)