Commented out some unused stuff. Will remove later after testing.
teakds to Qubit Server