Refactored job scheduling to common class.