Improved Cube Program