Implement argument based execution

Fixed global variable name.