Implement advanced assignment for layout