My old Objective-C GridEngine port