Fixed typos in specs.
Improved decision making.