Added code for Gray Area, 3 frames, 4 patterns