Creating a connected architecture with Functions