Refactored job scripts.