Working!

Wooo, figured it out.  Will need to rewrite parts of it to make it more
accessible (I think) for buttons and changing the inputs.