Added option to disable popup blocker.