Introduce debug for maplinking