Various speedups.