Added cubes functions