Define maxthreads in configuration, allow 5 concurrent threads