Removed the cookie check as it isn't necessary.