Add error handling, avoid dupes, tests.