Delete unnecessary blocks of code