test
Rewritten, not fixed.
Fixed.
Fixed.
Some performance optimizations. Add profiles.
Delete commented lines.