Fixes parser so values aren't lost. Returns parsed values in a dict.