More work on ibmap function.