Finally scheduler and got it working