Add activity polyfill