Simplifed even more since I had a useless variable.