Refactored jobsubmission to allow for jobsubmission from kraken host