Implemented remaining functions to update mappings.