Total optimization v6. Robert Haritonov.

Optimized scripts added through style.