BUG: Unnecessary use of detectCores. 

detectCores was being used without calling library(parallel).