Added check repetition when adding.