Could use modulo division here.