Why wasn't I using the % operator?