```$pubId``` is not used, can be removed.