Fixed bug -- accidentally set a global variable!