Finished the program. Strangely doesn't work when exported, but that can
be worked out.