Clean up codes and Quantum Checkbox Patch.