Some performance improvements added.
Merge remote-tracking branch 'origin/master'