diff --git a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetPipe.scala b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetPipe.scala
index 40b546bde641419bf3d4bad17595268bee9f3cb1..61529cefa8faef3b277e98da6246a2ba69a201df 100644
--- a/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetPipe.scala
+++ b/public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetPipe.scala
@@ -42,10 +42,11 @@ class BiopetPipe(val commands: List[BiopetCommandLineFunction]) extends BiopetCo
 
     val inputOutput = input.filter(x => output.contains(x))
     require(inputOutput.isEmpty, "File found as input and output in the same job, files: " + inputOutput.mkString(", "))
-
-    threads = commands.map(x => if (x.threads > 0) x.threads else 0).sum
   }
 
+  override def defaultCoreMemory = commands.map(_.defaultCoreMemory).sum
+  override def defaultThreads = commands.map(_.defaultThreads).sum
+
   val root: Configurable = commands.head.root
   override def configName = commands.map(_.configName).mkString("-")
   def cmdLine: String = {