Added decodeDm method.