Added reference to instantiate cookie_data in the Publication constructor if passed as an argument.