Adds bad copy check according to the suggestion on #6.