Changed the parser to accept multiple dimensions vector