Grid support

Added grid support and connection wireup.