Out of bounds checking, but still not fully working