diff --git a/samtools.wdl b/samtools.wdl
index 8cc6c47d430c15e62e466f96d282b88fc5c67b13..db19d93181b5fce0fa63316d568c7586f80842a8 100644
--- a/samtools.wdl
+++ b/samtools.wdl
@@ -21,4 +21,30 @@ task Merge {
     output {
         File outputBam = outputBamPath
     }
-}
\ No newline at end of file
+}
+
+task Markdup {
+    File inputBam
+    String outputBamPath
+
+    command {
+        samtools markdup ${inputBam} ${outputBamPath}
+    }
+
+    output {
+        File outputBam = outputBamPath
+    }
+}
+
+task Flagstat {
+    File inputBam
+    String outputPath
+
+    command {
+        samtools flagstat ${inputBam} > ${outputPath}
+    }
+
+    output {
+        File flagstat = outputPath
+    }
+}