mcedit: add intermediate variables to make code more readable and debuggable.