Pixel Generator (brought back loops, used CASE)