Add autoload cookie to hook function (refs #35)