Added custom polyfill mechanism, included polyfill check test.