Use integer arithmetic for indexing