Can someone vectorize this? | ScratchStats