Added argument for number of instances of scheduler to use.