Added error return value and jobs into prompt