Added Job class to make this code work on Windows 2012 R2