Remove trailing wightspaces.
Add autoload cookie.