Finish Centroid CubeFile code