Updates/cleans up mappings.