Moved LAYOUT rules upper