Fixed type errors in Schedulers.
Added scheduler factory.
Fixed implicit conversions to make compile work