Added auto updating map on weight changes, only needs fix in delete_attributes