Added an assertion to make this fail if not used as documented.