Added support for masonry in n2