Was trying to use an undeclared variable. Wasn't working for some reason. Go figure.