Oops, forgot to rename one variable, causing the whole thing to break