Make it actually work, and add debugging window!