diff --git a/public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala b/public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
index 5ffce6a1c2a10d5f2a5b0f8e5e11976642aa0961..8871f481f3075d7eef52784583ccb5aadaa5b715 100644
--- a/public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
+++ b/public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
@@ -35,9 +35,6 @@ class CustomVarScan(val root: Configurable) extends BiopetCommandLineFunction wi
   @Input(doc = "Input BAM file", required = true)
   var input: File = null
 
-  @Input(doc = "Reference FASTA file", required = true)
-  var reference: File = null
-
   @Output(doc = "Output VCF file", required = true)
   var output: File = null
 
@@ -93,7 +90,7 @@ class CustomVarScan(val root: Configurable) extends BiopetCommandLineFunction wi
   override def beforeGraph(): Unit = {
     super.beforeGraph()
     require(output.toString.endsWith(".gz"), "Output must have a .gz file extension")
-    if (reference == null) reference = referenceFasta()
+    deps :+= referenceFasta()
   }
 
   def cmdLine: String = {