Added rules for layout.