Duplicate portion of the code removed.

The bottom part of the code (starting from line 108) is duplicated, I removed it.