Still buggy; changes variables in map to proper variable name, etc.