Added random scheduling

Also some prints to see the effects.