Properly distinguish between internal/external pins