Fixes using 6.x scheduler class instead of old 4.x one
Merge pull request #156 from nsendetzky/master

Fixes using 6.x scheduler class instead of old 4.x one