Lots of optimizations...