Coordinate index. Bad code :C