Use a custom container class instead of messing around with maps.