Added SerialSelector code into PatternPaint