Integer optimizations and improved method implementations.