Waterlogging management