Adding redundancy to code