Several optimizations: