Added function to get jobs