More work on mmd