diff --git a/biopet.wdl b/biopet.wdl
index 9b9722cfa0de8b17c4ab51bc60d9f8d6838ebb3d..b3234e4d16543afcbdc8bce39616010ce5463fde 100644
--- a/biopet.wdl
+++ b/biopet.wdl
@@ -168,8 +168,8 @@ task FastqSync {
 }
 
 task SampleConfig {
+    File? toolJar
     String? preCommand
-    File toolJar
     Array[File]+ inputFiles
     String keyFilePath
     String? sample
@@ -182,11 +182,15 @@ task SampleConfig {
     Float? memoryMultiplier
     Int mem = ceil(select_first([memory, 4.0]))
 
+    String toolCommand = if defined(toolJar)
+    then "java -Xmx" + mem + "G -jar " +toolJar
+    else "biopet-extractadaptersfastqc -Xmx" + mem + "G"
+
     command {
         set -e -o pipefail
         ${preCommand}
         mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"}
-        java -Xmx${mem}G -jar ${toolJar} \
+        ${toolCommand} \
         -i ${sep="-i " inputFiles} \
         ${"--sample " + sample} \
         ${"--library " + library} \