Changed variable names, got everything working