Changed global variable and setup parser with this