Jetrel caught a place where I messed up order of operations. Thanks, Jetrel!