Joining scheduler instead of sleeping