Inlining more math (#5).