Fix some variables I missed.
And this is how output will work.