Not elegant, but it works.
Removed a few lines.
Removed a few more lines.
Readme and screenshot.