Add new variable to macro's parent instead of to macro
Removed unused external commands