A bit of trouble with my layout conditions.