Added old cubebox code