Add autoload cookie and trailing line