Make pollForJobs actually use ms argument