Minor changes to layout. Allowed to choose Scheduling Rule at runtime.