Added variables to see if memory segments are in use or not. Also added a quantum command that changes the quantum variable.