Make Mode from global to job-specific.

Issue #447