WORKING Cubic Drive code