Separate pre- and post-quantization.

Fixes #106.