Added support for pollForResize=false