Created a way of checking the status of jobs