Optimized for V8. Indentation fixed