Parameterize number of threads for pushing