Added better support for using multiple processors