Are you by any chance attempting to toggle xray at the same time?
If so, I would just call the procedure within the procedure:
toggleXray;
"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche