Updated the foreach loop to remove unnecessary reference. Cleaned up code for better readability while processing job data.