Proper implementation of scale extension.
Bug fixes and stricter checks.
Updating autotest.