Adding PinMap to global for extending functionality