Creating a connection to the cubes