Be careful about integer division here.