Removed senseless region.
Removed unused debug functions.