Parsing variables (need to be improved)