Optimized code.
Updated README.