Modified for PixelPin