TONS o' optimizations