Added code that ensures that no dependencies are duplicated. Fixes #5