Somewhat 'cleaner' variable parsing