Mostly works, except the output is the same... it should be different
between AM and MD