Testing up to quantization and code refactor.