Adding per-course weekly pattern restriction.