Fixed addCube to work again.