Optimized.
BUGFIX.
Using ruby 1.9.3.