Bounds checking works