Add a log console for reporting errors to users
Add check that ids are unique