Added spawning jobs in main