Allow passing of array and block to layout