Grid architecture and control