diff --git a/biopet.wdl b/biopet.wdl
index 1f04df32fceb027ede405476ed2f970af31911c8..d076fc2a1c8c271fa1847ab7f3721b03f2a5ee7f 100644
--- a/biopet.wdl
+++ b/biopet.wdl
@@ -73,6 +73,7 @@ task BaseCounter {
 
 task ExtractAdaptersFastqc {
     File? toolJar
+    String? preCommand
     File inputFile
     String outputDir
     String? adapterOutputFilePath = outputDir + "/adapter.list"
@@ -93,6 +94,7 @@ task ExtractAdaptersFastqc {
 
     command {
     set -e
+    ${preCommand}
     mkdir -p ${outputDir}
     ${toolCommand} \
     --inputFile ${inputFile} \