Initial commit of partial DMM code