Added cubes write functions
Added cubes write functions