Removed a lot of commented out code in main (things like these should eventually be moved into unit tests).
Still have bug where Linked only seems to work when nothing else is running