Polynomial changes

The changes in this PR address issues raised in #1053.