Add something resembling mutable pairs. Not very tested.