Commented/Optimized code.