Generate Qube (not working)