Improve popwin rules.
Remove needless vars from profile.