Try using arrays for speed