Flipped outOfBounds, making everything neater.