Removed commented-out code.
Removed unused local variable END.
Removed unused local variable Y0.