Ctors for backwards compatibility.