This works perfectly, when they aren't separate functions. Wat.